<%@page language="java" pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<%@ include file="../common.jsp"%>
<html>
<head>
    <link rel="stylesheet" href="${ctx}/statics/layui/css/layui.css">
</head>
<body>
<h2>Hello World!  登录成功 欢迎 ${user.username}</h2>

<a href="logout">注销</a>

<table class="layui-table" lay-skin="line" id="userlist"></table>

<script src="${ctx}/statics/layui/layui.all.js"></script>
<script>
    var table = layui.table;
    table.render({
        elem:'#userlist',
        url: 'list',
        cols:[[
            {field:'id', width:80, title: 'ID', sort: true},
            {field:'username', width:180, title: '用户名', sort: true},
            {field:'password', width:180, title: '密码', sort: true},
            {field:'address', title: '地址', sort: true}
        ]],
        page:true
    });
</script>
</body>
</html>
